package com.xqb.listen.utils

/**
 * @author Ling
 * @date :2025/1/23 18:15
 * @des : 快速点击处理类
 */
object FastClickHandleUtil {

    private var oldClickTime = 0L

    fun isFastClick(time: Long): Boolean {
        val nowTimes = System.currentTimeMillis()
        if (nowTimes - oldClickTime >= time) {
            oldClickTime = nowTimes
            return false
        } else {
            return true
        }
    }
}